package com.example.studykotlin.kotlin_actual_combat.MyKotlin.MyView.CustomView

import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.view.View

class PaintCanvasView(context: Context): View(context) {

    override fun onDraw(canvas: Canvas?) {
        super.onDraw(canvas)
        val paint = Paint()
        paint.color = Color.GREEN
        paint.style = Paint.Style.FILL
        canvas?.drawRect(10f,10f,280f,280f,paint)
    }
}